﻿using System;
using System.Collections.Generic;
using System.Text;
using IKEA.FileExchange.Configuration;
using IKEA.FileExchange.Web;
using System.Xml.Serialization;
using System.IO;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Utilities;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string emailText = "<a href='www.google.com'>Google</a>";

            using (SPSite spSite = new SPSite("http://localhost"))
            {
                using (SPWeb spWeb = spSite.OpenWeb())
                {
                    SPUtility.SendEmail(spWeb, true, false, "vlarkin@brightconsult.ru", "test sp",emailText);
                }
            }


            Console.ReadKey();
        }
    }
}
